<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.fui-tab-scroll .item a {color:#fff;font-weight:400}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#fff;}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(255,255,255,1),rgba(255,255,255,0));}
.fui-icon-group .fui-icon-col {
    margin: 0.1rem 0;
}
.carousel {margin-top:0}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
.fui-notice:after, .fui-notice:before  {
	border-bottom: 0 solid #D9D9D9;
	border-top: 0 solid #D9D9D9;
}
.bottombg {position: absolute;margin-top:-0.5rem;width:100%;height:0.5rem;border-top-right-radius:0.5rem;border-top-left-radius:0.5rem;}
.topbg {height:4rem;}
.topbg.nosearch{height:2rem;}
.search-input i {
    color: {{main.syscolor||'#b4b4b4'}};
}
.search-input input {
	border: 0 solid #b4b4b4;
}
.radius .jy-group {border-radius:0.5rem;margin:0.2rem 0.5rem}
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
	padding-top:4rem;
    text-align: center;
    color: #fff;
}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div ng-if="pagedata.nodatapic_close" class="fui-page fui-page-current page-goods-list">
<div class='fui-content' style="top:0">
	<div ng-class="{'topbg':1,'nosearch':pagedata.setting.issearch==1}" style="height:5rem;position: relative;text-align:center;width:100%;background: {{main.syscolor || '#7c1cc9'}};">
		<div class="fui-cell-group" style="margin-top:0;background:none;">
		<div class="fui-cell" style="background:none;padding:0.5rem">
			<div class="fui-cell-label" style="width:auto">
				<img style="height:1.2rem" ng-src="{{tomedia(pagedata.setting.toplogo) || '../addons/jy_weishop/resource/images/logo.png'}}"/>
			</div>
			<div class="fui-cell-info"></div>
			<div class="fui-cell-remark noremark" style="color:#fff;">
				<i class="icon icon-saoyisao1" ng-click="pagedata.scancode()" style="font-size: 0.8rem;margin-right:0.2rem"></i>
			</div>
		</div>
		</div>
		<div ng-if="pagedata.setting.issearch!=1" class="fui-cellone" style="padding-bottom:2rem;padding-top:0;padding-right:0.4rem;z-index: 108;top:0;">
			 <div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="access_json('jy_ad/news//keyword='+pagedata.params.keyword)" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="搜索新闻" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;" />
					</form>
				</div>
			 </div>
			 <div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;color:#fff" ng-click="access_json('jy_ad/news//keyword='+pagedata.params.keyword)">搜索</span>
			 </div>
		</div>
	</div>
	<div class="bottombg" style="background:#f7f7f7;"></div>
	<div ng-if="pagedata.params.pid==0 && !pagedata.setting.ishdps" ng-include="sys_html('shop/_hdps','','','jy_ad')" class="radius" style="padding:0 0.5rem;"></div>
	<div ng-if="pagedata.params.pid==0 && !pagedata.setting.isbankuai1" class="radius" style="padding: 0.3rem;width:100%">
		<div class="bgnone" ng-include="sys_html('shop/_bankuai1')"></div>
	</div>
	<div ng-if="!pagedata.setting.isnotice" ng-include="sys_html('shop/_notice','','','jy_weishop')" class="radius" style="padding:0 0.5rem;"></div>
	<div id="containerId"></div>
	<div class="group-top" ng-if="pagedata.account.noplugins!=1">
		 <div class="fui-list jump">
					<a class="fui-list-inner" href="">
						<div class="title blod" style="color: #333333;">热门产品</div>
						 <div class="subtitle" style="color: #666666;">最新热点产品，公司服务产品</div>
					 </a>
					<a class="fui-remark jump" style="padding-right: 0.2rem; height: 2rem; text-align: center; line-height: 2rem;" ng-click="access_json('jy_weishop/goods.index/')">
					更多
					</a>
		  </div>
	</div>
	<div ng-if="pagedata.goods" class="fui-goods-group block">
				<div ng-repeat="item in pagedata.goods" class="fui-goods-item">
					<div ng-click="access_json('jy_weishop/goods.detail//id='+item.id)" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;background-image: url('{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}')">
							<div ng-show="item.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
							<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
					</div>
					<div ng-click="access_json('jy_weishop/goods.detail//id='+item.id)" ng-class="{'detail':1,'commission_money':item.commission_money}">
						<div class="name">
								<i ng-show="item.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
								{{item.title}}
						</div>
						<div class="price" style="margin-top: 0.3rem">
							<span class="text">￥{{item.active.price || item.price}}/{{item.unit || '件'}}</span>
						</div>
					</div>
				</div>
	</div>
	<div class="group-top" ng-if="pagedata.account.noplugins!=1">
		 <div class="fui-list jump">
					<a class="fui-list-inner" href="">
						<div class="title blod" style="color: #333333;">热点短视频</div>
						 <div class="subtitle" style="color: #666666;">最新热点视频，公司宣传短视频！</div>
					 </a>
					<a class="fui-remark jump" style="padding-right: 0.2rem; height: 2rem; text-align: center; line-height: 2rem;" ng-click="access_json('jy_weishop/video.index/')">
					更多
					</a>
		  </div>
	</div>
	<div ng-if="pagedata.videos" class="fui-goods-group block">
				<div ng-repeat="item in pagedata.videos" class="fui-goods-item">
					<div ng-click="access_json('jy_weishop/video.detail//id='+item.id)" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;height:10rem;background-image: url('{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}')">
						<div ng-show="item.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
						<div class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
					</div>
					<div ng-click="access_json('jy_weishop/video.detail//id='+item.id)"  class="detail" style="height:2.6rem">
						<a>
							<div class="name">
								{{item.title}}
							</div>
						</a>
						<div class="price" style="margin-top: 0.1rem">
							<span class="member"><img ng-repeat="m in item.members" ng-if="$index<=5" class="avatar" style="margin-right:-0.3rem" ng-src="{{tomedia(m.avatar) || '../core/resource/images/nopic.jpg'}}"></span>
							<span class="subtitle" style="font-weight:400"><i class="icon icon-good"></i> {{item.likes || 0}}</span>
						</div>
					</div>
				</div>
	</div>
	<div class="group-top">
			   <div class="fui-list jump">
					<a class="fui-list-inner" ng-click="access_json('jy_ad/news//group_id='+pagedata.newsgroupid)">
						<div class="title">新闻动态</div>
						 <div class="subtitle">最近新闻动态，公司行业热点新闻！</div>
					 </a>
					<a class="fui-remark jump" style="padding-right: 0.2rem; height: 2rem; text-align: center; line-height: 2rem;" href="javascript:;" ng-click="access_json('/article.list//group_id='+pagedata.newsgroupid)">
						更多
					</a>
				</div>
	</div>
	<div class="fui-list-group" style="margin-top: 0rem;border-top: 0px">
		<div class="list-number" ng-repeat="item in pagedata.list">
				<a class="fui-list " href="javascript:;" ng-click="access_json('jy_ad/news/detail/','id='+item.id)">
						<div class="fui-list-media">
								<img class="round" ng-src="{{tomedia(item.pic_url) || '../core/resource/images/nopic.jpg'}}">
						</div>
						<div class="fui-list-inner">
								<div class="title bold" style="font-size: 0.8rem;">{{item.title}}</div>
								<div class="subtitle">{{item.desc}} ...</div>
						</div>
						<div class="fui-list-angle">
								<div class="angle"></div>
						</div>
				</a>
		</div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_sales','','','jy_weishop')"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('shop/_kefu')"></div>
<div ng-if="pagedata.nodatapic_close" ng-include="sys_html('common/_coupon',true)"></div>
<div ng-if="pagedata.nodatapic_close" ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<div ng-include="sys_html('common/_welcomehdp',true)"></div>
<div ng-include="sys_html('common/_adjs')"></div>
<script>
scope.pagedata.isa2=true;
scope.pagedata.isno_coupontop=1;
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href = result;
				}
			});
}
scope.tool.get_list('jy_ad/news/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_ad/news/list/');
}
</script>